package homework.day06;

/**
 * @author ThinkBook
 */
public class Test08 {
    public static void main(String[] args) {
        new ObjectCounter();
        new ObjectCounter();
        System.out.println(ObjectCounter.getObjectCount());
    }
}
class ObjectCounter{
    public static int count;
    public ObjectCounter(){
        count++;
    }
    public static int getObjectCount(){
        return count;
    }
}
